﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.SysCenter.Model;
using Truron.Utility;

namespace Truron.RepairFormCore
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("HistoryRecord")]
	[RedisKey("HistoryRecord")]
	public  class HistoryRecord: Utility.BaseData
	{
				        public int HistoryID {get;set;}
						        public int MajorID {get;set;}
						        public int AuditID {get;set;}
						        public datetime OperateTime {get;set;}
						        public string Content {get;set;}
									        public bit IsDelete {get;set;}
						        public int UserID {get;set;}
						        public int FlowType {get;set;}
						        public int FlowID {get;set;}
					public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId; 
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
